<?php

class Menu_order extends Admin_Controller {

	function __construct()
	{
		parent::__construct();	
	}
	
	public function index()
	{
		
		$this->aPageJs[] = array(
							'combine_js' => true,
							'base_href' => '/media/js',
							'js' => array('jquery_ui_sorted_nested_dependancies', 'jquery_ui_sortable_nested', 'admin_menu_order'),
							'version' => '1.0'
		);	

		// build up our header_css array
		$this->aPageCss[] = array(
							'combine_css' => true,
							'base_href' => '/media/css',
							'css' => array('admin_menu_order'),
							'media' => 'all',
							'version' => '1.0'
		);
		
		$this->load->library('pages_lib');
		
		$qPages = $this->pages_lib->get_page_hierarchy(array('page_name' => NULL), array('page_deleted' => 'N', 'page_status' => 'LI'));
		
		$sPages = $this->pages_lib->build_page_hierarchy($qPages, 'ol', 'sortable', 'li', 'list');
		
		$this->aData['sContent'] = $sPages;
		
		$this->load->view('platform/'.$this->sPlatform.'/admin/menu_order/index', $this->aData);
	}
	
	
}

?>